package dataStruct;

import java.io.Serializable;
import java.util.Properties;

public class FtpServerInfo implements Serializable{
	private static final long serialVersionUID = 1L;
	public FtpServerInfo(FtpServerInfo info)
	{
		ftpServerAdress = info.ftpServerAdress;
		ftpServerPort = info.ftpServerPort;
		ftpServerUser = info.ftpServerUser;
		ftpServerPassword = info.ftpServerPassword;
		ftpServerPath = info.ftpServerPath;
	}
	
	public FtpServerInfo(Properties masterProper)
	{
		ftpServerAdress = masterProper.getProperty("ftpServerAdress");
		ftpServerPort = Short.parseShort(masterProper.getProperty("ftpServerPort"));
		ftpServerUser = masterProper.getProperty("ftpServerUser");
		ftpServerPassword = masterProper.getProperty("ftpServerPassword");
		ftpServerPath = masterProper.getProperty("ftpServerPath");
	}
	
	public String ftpServerAdress;
	public Short ftpServerPort;
	public String ftpServerUser;
	public String ftpServerPassword;
	public String ftpServerPath;
}
